package com.android.job.logic;

import android.os.Handler;

import com.android.job.fusion.FusionCode;
import com.android.job.service.Request;
import com.android.job.service.request.UpdateVerRequest;

public class UpdateVerLogic
{
 
	private static UpdateVerLogic instance;
	
	private UpdateVerLogic()
	{
		
	}
	
	public synchronized static UpdateVerLogic getInstance()
	{
		if(instance == null)
		{
			instance = new UpdateVerLogic();
		}
		return instance;
	}
	
	public Request updateVer(Handler handler,String version,String clientType)
	{
		UpdateVerRequest update = new UpdateVerRequest(handler, FusionCode.URL);
		
		update.setValues(version, clientType);
		update.getJSONResponse();
		
		return update;
	}
	
}
